/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package ca.trader.beans.enterprise;

import ca.trader.comment.Comment;
import ca.trader.except.SaleDoesNotExistException;
import ca.trader.sale.Sale;
import ca.trader.user.User;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Ahsan
 */
@Local
public interface CommentBeanLocal
{
	 void insertComment (User commentor, Integer saleID, String commenString) throws SaleDoesNotExistException;
	 
	 List <Comment> getCommentsBySale (Sale sale);
	 
	 List <Comment> getCommentsBySaleID (Integer saleID);
	 
	 List <Comment> getCommentsByUser (User user);
	 
	 List <Comment> getsCommentsByUserID (Integer userID);
}
